import React, { Component } from 'react';
import { inject, observer } from 'mobx-react'

@inject('cartStore')
@observer
class PickApple extends Component {
    render(){
        const { buttonText,pickApple } = this.props.cartStore

        return (
            <div className="btn-div">
            <button   onClick={() => pickApple() } >{buttonText}</button>
        </div>
        );
    }
}

export default PickApple;
